package com.xbongbong.pro.menu.pojo.dto;

import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.pojo.dto.MenuGroupAddDTO;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import java.util.ArrayList;
import java.util.List;

/**
 * 批量插入分组
 * @author 吴峰
 * @version v1.0
 * @date 2019/1/16 15:06
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class MenuGroupAddBatchDTO extends BaseDTO {
    private static final long serialVersionUID = 567150171741972957L;

    @Getter(onMethod_ = {@QueryIgnore})
    private Long appId;

    private Integer del;

    @NotEmpty(message = "{dto.msg.menuFormAddBatch.menuList.NotEmpty}")
    private List<MenuGroupAddDTO> menuList;

    private Integer companyInit;

    public MenuGroupAddBatchDTO(){
        menuList = new ArrayList<>();
        del = DelEnum.NORMAL.getDel();
        companyInit = 0;
    }
}
